#!/usr/bin/env python
# encoding: utf-8

from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, PasswordField
from wtforms.validators import DataRequired


# 定义的表单都需要继承自FlaskForm
class RegisterForm(FlaskForm):
    # 域初始化时，第一个参数是设置label属性的
    username = StringField('用户名', validators=[DataRequired()])
    password = PasswordField('密码', validators=[DataRequired()])
    password2 = PasswordField('确认密码', validators=[DataRequired()])
